<template>
  <div>
    <el-table :data="list" style="width: 100%">
      <el-table-column label="姓名" prop="username"></el-table-column>
      <el-table-column label="操作">
        <template #default="scope">
          <el-button type="danger" @click="deteleUser(scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script lang='ts' setup>
defineProps(['list'])
function deteleUser(item: any) {

}
</script>
<style lang='less' scoped>

</style>